package fun.hijklmn.magic.idGenerator.server.service;

import fun.hijklmn.magic.idGenerator.common.enums.ServerTypeEnum;
import fun.hijklmn.magic.idGenerator.common.pojo.WorkerNode;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * DB WorkerID Assigner for UID Generator 服务类
 * </p>
 *
 * @author zsl
 * @since 2021-07-12
 */
public interface WorkerNodeService extends IService<WorkerNode> {

    /**
     * 获取ID
     * @param serverTypeEnum
     * @return
     */
    String get(ServerTypeEnum serverTypeEnum);

}
